package com.black.system.domain.resp.sysconfig;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.black.common.annotation.DictDataProperty;
import com.black.system.excelconvert.SysDictDataConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@ApiModel(value = "SysConfigResp", description = "参数配置表响应对象")
@Getter
@Setter
@ExcelIgnoreUnannotated
public class SysConfigResp {

    @ExcelProperty(value = "参数主键", index = 0)
    @ApiModelProperty(value = "参数主键")
    private Integer configId;

    /**
     * 参数名称
     */
    @ExcelProperty(value = "参数名称", index = 1)
    @ApiModelProperty(value = "参数名称")
    private String configName;

    /**
     * 参数键名
     */
    @ExcelProperty(value = "参数键名", index = 2)
    @ApiModelProperty(value = "参数键名")
    private String configKey;

    /**
     * 参数键值
     */
    @ExcelProperty(value = "参数键值", index = 3)
    @ApiModelProperty(value = "参数键值")
    private String configValue;

    /**
     * 系统内置（Y是 N否）
     */
    @ExcelProperty(value = "系统内置", converter = SysDictDataConverter.class, index = 4)
    @DictDataProperty(value = "sys_yes_no")
    @ApiModelProperty(value = "系统内置（Y是 N否）")
    private String configType;

    /**
     * 创建时间
     */
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "创建时间", index = 5)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注", index = 6)
    @ApiModelProperty(value = "备注")
    private String remark;
}
